package ge.core.system.service;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.fzy.core.utils.RsUtils;

public class MappingListMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		MappingListVo vo = new MappingListVo();
		vo.setId(RsUtils.getLong("id", rs));
		vo.setPrefixText(rs.getString("prefix_text"));
		vo.setJdbcDriver(rs.getString("jdbc_driver"));
		vo.setUpdatedDate(rs.getDate("updated_date"));
		vo.setNameText(rs.getString("name_text"));
		vo.setJdbcPassword(rs.getString("jdbc_password"));
		vo.setPackageText(rs.getString("package_text"));
		vo.setUpdatedUser(RsUtils.getLong("updated_user", rs));
		vo.setJdbcUrl(rs.getString("jdbc_url"));
		vo.setCreatedUser(RsUtils.getLong("created_user", rs));
		vo.setJdbcUsername(rs.getString("jdbc_username"));
		vo.setJndiText(rs.getString("jndi_text"));
		vo.setCreatedDate(rs.getDate("created_date"));
		vo.setStatus(rs.getString("status"));
		return vo;
	}

}
